package com.snl.micro.blog.user.client;

import com.snl.micro.blog.common.protocol.ResponseResult;
import com.snl.micro.blog.common.query.ArticleQueryParam;
import com.snl.micro.blog.common.vo.ArticleVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name="article-service",url = "http://localhost:10000")
public interface ArticleClient {

    @GetMapping("/v1/article/query")
    ResponseResult<List<ArticleVo>> query(@SpringQueryMap ArticleQueryParam queryParam);
}
